<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	</body>
	<script type="text/javascript">
		var b=prompt("你是不是会员");
		var a=prompt("请输入您的购买金额");
				
		
		switch(b){
			case "是":
		if(a>=200){
			document.write("会员消费"+a,"实际支付"+a*0.75);
		}else if(a<200){
			document.write("会员消费"+a,"实际支付"+a*0.9);
		}
		break;
		
		case "不是":
		if(a>=100){
			document.write("非会员消费"+a,"实际支付"+a*0.9);
		}else if(a<100){
			document.write("非会员消费"+a,"实际支付"+a*1);
		}
		break;
		}
		
	</script>
</html>